const getters = {
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  // permissions: state => state.user.permissions,
  sex: state => state.user.sex,
  userName: state => state.user.userName,
  department: state => state.user.department,
  phone: state => state.user.phone,
  status: state => state.user.status,
   // 获取用户的 openid
    openId: state => {
      return state.user.openId
    },
  range: state => {
    return state.user.range//打卡范围
  },
}
export default getters
